<?php

namespace Biz\model\brand;

/**
 * 品牌忽略内容
 * Class Content
 * @package Biz\model\brand
 */
class ContentIgnore extends \Doraemon\pockets\datebase\BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'brand_content_ignore';


    const OP_TYPE_WIKI = 1; //忽略类型wiki

    const STATUS_NORMAL = 1; //正常


    public static function getAllIgnore()
    {
        return self::select('*', [
            'content_status' => self::STATUS_NORMAL
        ]);
    }

    public static function getBrandIgnore($brand_id)
    {
        return self::select('*', [
            'brand_id' => $brand_id,
            'content_status' => self::STATUS_NORMAL,
        ]);
    }
}